﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Calculator.aspx.vb" Inherits="WebApplicationProject.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

Enter the first number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     <asp:TextBox ID="txtFirstNumber" runat="server"></asp:TextBox>
    <asp:RangeValidator ID="rangeValid_firstNumber" runat="server" 
        ControlToValidate="txtFirstNumber" 
        ErrorMessage="Please enter a number between -1000 and 1000" MaximumValue="1000" 
        MinimumValue="-1000" Type="Double"></asp:RangeValidator>
    <br /><br />

Enter the second number:&nbsp;&nbsp;&nbsp;    <asp:TextBox ID="txtSecondNumber" runat="server"></asp:TextBox>
    <asp:RangeValidator ID="rangeValid_secondNumber" runat="server" 
        ControlToValidate="txtSecondNumber" 
        ErrorMessage="Please enter a number between -1000 and 1000" MaximumValue="1000" 
        MinimumValue="-1000" Type="Double"></asp:RangeValidator>
    <br /><br />

Answer:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                     
    <asp:Label ID="lblAnswer" runat="server" BorderStyle="None"></asp:Label><br /><br />

<asp:Button ID="btnAdd" runat="server" Text="Add" />
    

</asp:Content>
